import sqlite3

conn = sqlite3.connect('test.db')
cur = conn.cursor()
f = open('FUNDS.sql', 'r', encoding='utf-8')
sql = f.read()
cur.executescript(sql)

conn.commit()
conn.close()